Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix panic when using MixedInstancesPolicy #298

Merged
merged 1 commit into from
Aug 23, 2021

Conversation

backjo
Copy link
Contributor

@backjo backjo commented Aug 12, 2021

No description provided.

@codecov
Copy link

codecov bot commented Aug 12, 2021

Codecov Report

Merging #298 (8086d4c) into controller-v2 (15007b3) will increase coverage by 2.71%.
The diff coverage is 100.00%.

Impacted file tree graph

@@                Coverage Diff                @@
##           controller-v2     #298      +/-   ##
=================================================
+ Coverage          36.80%   39.51%   +2.71%     
=================================================
  Files                  7        7              
  Lines                663      663              
=================================================
+ Hits                 244      262      +18     
+ Misses               401      377      -24     
- Partials              18       24       +6     
Flag Coverage Δ
unittests 39.51% <100.00%> (+2.71%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
controllers/upgrade.go 45.78% <100.00%> (+5.42%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 15007b3...8086d4c. Read the comment docs.

Copy link
Contributor

@eytan-avisror eytan-avisror left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG
@shreyas-badiger would be good if we can do a hotfix with this fix

@backjo
Copy link
Contributor Author

backjo commented Aug 18, 2021

@eytan-avisror @shreyas-badiger any chance we could get that hotfix with this in?

@shreyas-badiger shreyas-badiger merged commit e77431c into keikoproj:controller-v2 Aug 23, 2021
@shreyas-badiger
Copy link
Collaborator

shreyas-badiger commented Aug 23, 2021

@backjo yes. we can do a minor release soon. I have another bug to fix. Will do it right after that.
Ticket - #301

shreyas-badiger added a commit that referenced this pull request Aug 26, 2021
* Controller v2 (#289)

* #2286: removed version from metric namespace

Signed-off-by: sbadla1 <[email protected]>

* #2122: ported bdd project from v1

Signed-off-by: sbadla1 <[email protected]>

* #2122: ported bdd project from v1

Signed-off-by: sbadla1 <[email protected]>

* update bdd for testing

Signed-off-by: sbadla1 <[email protected]>

* #2122: ported bdd project from v1

Signed-off-by: sbadla1 <[email protected]>

* #2122: ported bdd project from v1

Signed-off-by: sbadla1 <[email protected]>

* #2122: ported bdd project from v1

Signed-off-by: sbadla1 <[email protected]>

* #2122: ported bdd project from v1

Signed-off-by: sbadla1 <[email protected]>

* #2122: change cron

Signed-off-by: sbadla1 <[email protected]>

* #2122: change cron

Signed-off-by: sbadla1 <[email protected]>

* #2122: change cron

Signed-off-by: sbadla1 <[email protected]>

* #2122: change cron

Signed-off-by: sbadla1 <[email protected]>

* #2122: bdd changes for v2

Signed-off-by: sbadla1 <[email protected]>

* #2122: bdd changes for v2

Signed-off-by: sbadla1 <[email protected]>
Signed-off-by: sbadiger <[email protected]>

* Controller v2 (#290)

* #2286: removed version from metric namespace

Signed-off-by: sbadla1 <[email protected]>

* #2122: ported bdd project from v1

Signed-off-by: sbadla1 <[email protected]>

* #2122: ported bdd project from v1

Signed-off-by: sbadla1 <[email protected]>

* update bdd for testing

Signed-off-by: sbadla1 <[email protected]>

* #2122: ported bdd project from v1

Signed-off-by: sbadla1 <[email protected]>

* #2122: ported bdd project from v1

Signed-off-by: sbadla1 <[email protected]>

* #2122: ported bdd project from v1

Signed-off-by: sbadla1 <[email protected]>

* #2122: ported bdd project from v1

Signed-off-by: sbadla1 <[email protected]>

* #2122: change cron

Signed-off-by: sbadla1 <[email protected]>

* #2122: change cron

Signed-off-by: sbadla1 <[email protected]>

* #2122: change cron

Signed-off-by: sbadla1 <[email protected]>

* #2122: change cron

Signed-off-by: sbadla1 <[email protected]>

* #2122: bdd changes for v2

Signed-off-by: sbadla1 <[email protected]>

* #2122: bdd changes for v2

Signed-off-by: sbadla1 <[email protected]>

* #2122: bdd changes for v2

Signed-off-by: sbadla1 <[email protected]>
Signed-off-by: sbadiger <[email protected]>

* Controller v2 (#291)

* #2286: removed version from metric namespace

Signed-off-by: sbadla1 <[email protected]>

* #2122: ported bdd project from v1

Signed-off-by: sbadla1 <[email protected]>

* #2122: ported bdd project from v1

Signed-off-by: sbadla1 <[email protected]>

* update bdd for testing

Signed-off-by: sbadla1 <[email protected]>

* #2122: ported bdd project from v1

Signed-off-by: sbadla1 <[email protected]>

* #2122: ported bdd project from v1

Signed-off-by: sbadla1 <[email protected]>

* #2122: ported bdd project from v1

Signed-off-by: sbadla1 <[email protected]>

* #2122: ported bdd project from v1

Signed-off-by: sbadla1 <[email protected]>

* #2122: change cron

Signed-off-by: sbadla1 <[email protected]>

* #2122: change cron

Signed-off-by: sbadla1 <[email protected]>

* #2122: change cron

Signed-off-by: sbadla1 <[email protected]>

* #2122: change cron

Signed-off-by: sbadla1 <[email protected]>

* #2122: bdd changes for v2

Signed-off-by: sbadla1 <[email protected]>

* #2122: bdd changes for v2

Signed-off-by: sbadla1 <[email protected]>

* #2122: bdd changes for v2

Signed-off-by: sbadla1 <[email protected]>

* #2122: bdd changes for v2

Signed-off-by: sbadla1 <[email protected]>
Signed-off-by: sbadiger <[email protected]>

* Controller v2 (#292)

* #2286: removed version from metric namespace

Signed-off-by: sbadla1 <[email protected]>

* #2122: ported bdd project from v1

Signed-off-by: sbadla1 <[email protected]>

* #2122: ported bdd project from v1

Signed-off-by: sbadla1 <[email protected]>

* update bdd for testing

Signed-off-by: sbadla1 <[email protected]>

* #2122: ported bdd project from v1

Signed-off-by: sbadla1 <[email protected]>

* #2122: ported bdd project from v1

Signed-off-by: sbadla1 <[email protected]>

* #2122: ported bdd project from v1

Signed-off-by: sbadla1 <[email protected]>

* #2122: ported bdd project from v1

Signed-off-by: sbadla1 <[email protected]>

* #2122: change cron

Signed-off-by: sbadla1 <[email protected]>

* #2122: change cron

Signed-off-by: sbadla1 <[email protected]>

* #2122: change cron

Signed-off-by: sbadla1 <[email protected]>

* #2122: change cron

Signed-off-by: sbadla1 <[email protected]>

* #2122: bdd changes for v2

Signed-off-by: sbadla1 <[email protected]>

* #2122: bdd changes for v2

Signed-off-by: sbadla1 <[email protected]>

* #2122: bdd changes for v2

Signed-off-by: sbadla1 <[email protected]>

* #2122: bdd changes for v2

Signed-off-by: sbadla1 <[email protected]>

* #2122: added sh for dockerfile

Signed-off-by: sbadla1 <[email protected]>
Signed-off-by: sbadiger <[email protected]>

* check for ASG's launch template version instead latest. (#293)

Signed-off-by: sbadiger <[email protected]>

* controller v2: Fix ci job (#295)

* fix CI job

* fix Makefile

Signed-off-by: sbadiger <[email protected]>

* Release v1.0.1 (#294)

Signed-off-by: sbadiger <[email protected]>

* replace launchTemplate latest string with version number (#296)

Signed-off-by: sbadiger <[email protected]>

* Release v1.0.2 (#297)

Signed-off-by: sbadiger <[email protected]>

* Add ignoreDrainFailure and DrainTimeout as controller arguements

Signed-off-by: sbadiger <[email protected]>

* Sequential AWS API call for setting instances to StandBy

Signed-off-by: sbadiger <[email protected]>

* Set Instances to StandBy in batches

Signed-off-by: sbadiger <[email protected]>

* Set Instances to StandBy in batches

Signed-off-by: sbadiger <[email protected]>

* Set Instances to StandBy in batches

Signed-off-by: sbadiger <[email protected]>

* Set Instances to StandBy in batches

Signed-off-by: sbadiger <[email protected]>

* fix: fix panic when using MixedInstancesPolicy (#298)

Signed-off-by: Jonah Back <[email protected]>
Signed-off-by: sbadiger <[email protected]>

* fix vet errors

Signed-off-by: sbadiger <[email protected]>

* remove log messagE

Signed-off-by: sbadiger <[email protected]>

* change the logic

Signed-off-by: sbadiger <[email protected]>

* fix vet error

Signed-off-by: sbadiger <[email protected]>

* fix lint errors

Signed-off-by: sbadiger <[email protected]>

* add comment

Signed-off-by: sbadiger <[email protected]>

Co-authored-by: Sahil Badla <[email protected]>
Co-authored-by: Jonah Back <[email protected]>
@backjo backjo deleted the fix/panic branch August 27, 2021 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants